<template>
  <el-drawer
    title=""
    :visible.sync="visibleDrawer"
    :show-close="false"
    :before-close="handleClose"
    direction="rtl"
    size="800px"
  >
    <div>TraceId:{{ row.traceId }}</div>
    <div>上报人:{{ row.createUserNickname }}</div>
    <div>上报时间:{{ row.createTimeFormat }}</div>
    <div><br></div>
    <div>{{ row.message }}</div>
  </el-drawer>
</template>

<script>
import ErrorLog from '@/api/entity/ErrorLog'

export default {
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    row: {
      type: ErrorLog,
      required: true
    }
  },
  data() {
    return {
      props: {
        label: 'name',
        children: 'nodes'
      }
    }
  },
  computed: {
    visibleDrawer: {
      get() {
        return this.visible
      },
      set(val) {
        this.$emit('update:visible', val)
      }
    }
  },
  methods: {
    handleClose() {
      this.visibleDrawer = false
    }
  }
}
</script>
